#ifndef QCommon
#define QCommon
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>

#define QSERVER_OUT_MSQ "/tmp/QServer_LanQ_Out"
#define Q_CS_FIFO	"/tmp/Q_CS_FIFO"
#define Q_SYN       "/tmp/Q_SYNC"

#define PORT_UDP_IN 11400
#define PORT_UDP_OUT 11401
#define PORT_TCP_IN 11400
#define PORT_TCP_OUT 11401
struct CSData
{
    int pid;
    int msqid;
};

struct ACK
{
    long type;
    char res;
};

void store_msqid(int msqid);
int retrieve_msqid();
#endif
